{% include "../../header.html" %}
{% include "../../navigation.html" %}
<div class="wrapper">


    <div class="container-fluid">
        <!-- Page-Title -->
        <div class="row">
            <div class="col-sm-12">
                <div class="page-title-box">
                    <div class="btn-group pull-right">
                        <h4 class="page-title">Attachment</h4>
                    </div>
                    <ol class="breadcrumb hide-phone p-0 m-0">
                        <li class="breadcrumb-item"><a href="#">HuntCMS</a></li>
                        <li class="breadcrumb-item"><a href="#">Attachment</a></li>
                        <li class="breadcrumb-item active">attachment</li>
                    </ol>
                </div>
            </div>
        </div>
        <!-- end page title end breadcrumb -->


                    <table class="table table-striped add-edit-table" id="datatable-editable">
                        <thead>
                        <tr>
                            <th data-toggle="true">Id</th>
                            <th data-hide="phone">Poster</th>
                            <th data-hide="phone">Name</th>
                            <th data-hide="phone">Real address of document</th>
                            <th data-hide="phone, tablet">Created time</th>
                            <th data-hide="phone, tablet">Status</th>
                            <th data-hide="phone, tablet">Action</th>
                        </tr>
                        </thead>

                        <div class="form-inline m-b-20">
                                <div class="row">
                                    <div class="col-md-12 text-xs-center">
                                        <form class="form-horizontal" role="form" action="" method="get">
                                            <div class="form-group float-left m-r-5">
                                                <input id="demo-foo-search" name="k" type="text" placeholder="Search UserName" class="form-control" 
                                                autocomplete="on">
                                            </div>
                            
                                            <div class="form-group float-left m-r-5">
                                                <button type="submit"
                                                        class="btn btn-icon waves-effect waves-light btn-success m-b-5"><i
                                                        class="fa fa-search"></i></button>
                                            </div>
                                            <div class="form-group float-left m-r-5">
                                                <a href="{{ url('attachment.attachment.list' , '')}}"
                                                    class="btn btn-icon waves-effect waves-light btn-success m-b-5"><i
                                                        class="fa fa-refresh"></i></a>
                                            </div>
                                        </form>
                                    </div>
                                   
                                </div>
                            </div>
                        <tbody>
                        {% for attachment in attachments %}
                        <tr>
                            <td>{{ attachment.id }}</td>
                            <td>{% if attachment.user.nickname %}{{ attachment.user.nickname }}{% endif %}</td>
                            <td>{% if attachment.original_name %}{{ attachment.original_name }}{% endif %}</td>
                            <td>{% if attachment.filename %}{{ attachment.filename }}{% endif %}</td>
                            <td>{% if attachment.created %}{{ date('Y-m-d H:i:s', attachment.created) }}{% endif %}</td>
                            <td>{% if attachment.status == 1 %}passed{% elif attachment.status ==2 %}fail{% endif %}</td>
                            <td class="actions">
                                <a href="{{ url('attachment.attachment.audit', '')}}?id={{ attachment.id }}" class="on-default edit-row" data-toggle="tooltip" data-placement="top" title="" data-original-title="Click Edit"><i class="fa fa-pencil"></i></a>
                                <a href="{{ url('attachment.attachment.del', '')}}?id={{ attachment.id }}" class="on-default remove-row" data-toggle="tooltip" data-placement="top" title="" data-original-title="Click Delete"><i class="fa fa-trash-o"></i></a>
                            </td>
                        </tr>
                        {% endfor %}
                        </tbody>
                        <tfoot>
                        <tr class="active">
                            <td colspan="10">
                                <div class="text-right">
                                   
                                </div>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>

        <div class="clearfix">
            {% include "../../paginate.html" %}
        </div>
        <!-- end row -->

    </div> <!-- end container -->
</div>
<!-- end wrapper -->

{% include "../../footer.html" %}
